//
// Created by Lin on 2023/8/3.
//


#include <iostream>
#include <vector>
#include  "arrUtil.h"
using namespace std;

int main()
{
    vector<int> l={3,7,0,8,4,6};
    for (int i = 0; i < l.size(); ++i)
    {
        int j=i, cur = l[j];
        while(cur<l[j-1] && j>0)
        {
            l[j] = l[j-1];
            --j;
        }
        l[j]=cur;
    }
    printVector(l);
    return 0;
}